<%@ Import Namespace="System.IO" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Data.SqlClient" %>
<%@ Import Namespace="LAFDC.DataAccess" %>
<%@ Import Namespace="LAFDC.Logging" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
   <title>Routage: Edition</title>
   <link type="text/css" rel="stylesheet" href="style.css"/>
   <link type="text/css" rel="stylesheet" href="skins/forms.css"/>
   <script type="text/javascript">
       var c = new Array (8);
       var prev_id='';var asso='';var code='';var destinataire='';
       function CheckForm() {
            c[0]=document.routage_form.prev_id.value;
            c[1]=document.routage_form.asso.value;
            c[2]=document.routage_form.code.value;
            c[3]=document.routage_form.destinataire.value;
            c[4]=document.routage_form.address1.value;
            c[5]=document.routage_form.address2.value;
            c[6]=document.routage_form.ville.value;
            c[7]=document.routage_form.quantite.value;
        
        var save_url="routageadd.aspx?prev_id=" + c[0] + "&asso=" + c[1] + "&code=" + c[2] + "&destinataire=" + c[3] + "&address_1=" + c[4] + "&address_2=" + c[5] + "&ville_cp=" + c[6] + "&quantite=" + c[7];
        
        // Redirect to the save page
        window.location=save_url;
    }
    </script>
</head>
<body>
<h3>Routage du Journal de la Famille du Cheminot</h3>
<br/>
<form name="routage_form">
<label>Prev_id:</label> <input class="short" id="prev_id"/><br/>
<label>Association:</label> <input class="short" id="asso"/><br/>
<label>Code:</label> <input class="short" id="code"/><br/>
<label>Destinataire:</label> <input id="destinataire" /><br/>
<label>Adresse:</label> <input id="address1"/><br/>
<label>Adresse:</label> <input id="address2"/><br/>
<label>Code postal Ville:</label> <input id="ville"/><br/>
<label>Quantite:</label> <input id="quantite"/><br/>
<label>Synchrone:</label> <input id="synchrone"/><br/>
<!--label id="debug_label"></label><br/-->
<input type="button" id="submit" value="Enregistrer" onClick="CheckForm()"/> <input type="Button" ID="cancel" value="Annuler" onClick="window.location.reload()"/>
</form>
</body>
</html>